package com.kuang.service;

import com.kuang.mapper.DepartmentMapper;
import com.kuang.pojo.SystemDept;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DepartmentServiceImpl implements DepartmentService{

    @Resource
    DepartmentMapper departmentMapper;

    @Override
    public List<SystemDept> getDepartments() {
        return departmentMapper.getDepartments();
    }

    @Override
    public SystemDept getDepartment(String dept_code) {
        return departmentMapper.getDepartment(dept_code);
    }
}
